<!DOCTYPE HTML>
<html>
<head>
    <title>HTML5 Crop Image</title>
    <style>
        body{text-align: center;}
        #label {border:1px solid #ccc; backgound-color:#fff; text-align:center; height:300px;
            width:300px; margin:20px auto; position:relative;}
        #get_image {position:absolute;}
        #edit_pic {postion:absolute: display:none; backgound:#000;}
        #cover_box {position: absolute; z-index: 9999; display: none; top: 0px; left: 0px;}
        #show_edit {margin: 0 auto; display: inline-block;}
        #show_pic {height: 100px; width: 100px; border: 2px solid #000; overflow: hidden; margin: 0 auto; display: inline-block;}
    </style>
</head>
<body>
<input type="file" name="file" id="post_file">
<button id="save_button">SAVE</button>
<div id="label">
    <canvas id="get_image"></canvas>
    <p>
        <canvas id="cover_box"></canvas>
        <canvas id="edit_pic"></canvas>
    </p>
</div>
<p>
    <span id="show_edit"></span>
    <span id="show_pic"><img src=""></span>
</p>
<script type="text/javascript" src="js.js"></script>
</body>
</html>
